package com.demo.base.util;

import java.util.UUID;

public class UUIDGenerator {

	  public static synchronized String getUUID()
	  {
	    String s = UUID.randomUUID().toString();
	    return s.replace("-", "");
	  }

	  public static synchronized String[] getUUID(int num)
	  {
	    if (num < 1) {
	      return null;
	    }
	    String[] ss = new String[num];
	    for (int i = 0; i < num; i++) {
	      ss[i] = getUUID();
	    }
	    return ss;
	  }
}
